package model02;

import java.util.Scanner;

public class NhaSanXuat {
	private String ten;

	//nhap thong tin
	public void nhapThongTin() {
		Scanner s;
		
		do {
			s = new Scanner(System.in);
			System.out.print("Nha san xuat: ");
			ten = s.nextLine();
		} while(ten.trim().isEmpty());
	}
	
	//xuat thong tin nha san xuat
	public void xuatThongTin() {
		System.out.println("Nha san xuat: " + ten);
	}
	
	public String getTen() {
		return ten;
	}

	public void setTen(String ten) {
		this.ten = ten;
	}

}
